package com.xinxing.learning.datasource.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xinxing.learning.datasource.entity.TestUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TestUserMapper extends BaseMapper<TestUser> {

    /**
     * 自定义查询
     *
     * @param wrapper 条件构造器
     * @return
     */
    List<TestUser> selectAll(@Param(Constants.WRAPPER) Wrapper<TestUser> wrapper);

}